package day1103_3;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class F2 {
    public static void main(String[] args) throws IOException {
        FileOutputStream  fos=new FileOutputStream("1103_2.txt");//2.

        //2.用文件输出流的write方法将  一段文字转成字节数组输出到1103_2.txt
        fos.write(   "延安是新中国的起源".getBytes()   );

        fos.close();
    }
}
